package com.domain.service;

import com.domain.common.Result;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.Map;

public interface LoginService {

    int checkPhone(String phone);

    Map<String, Object> saveUser(String phoneNumber,
                                 String name,
                                 String gender,
                                 String birthday,
                                 String city,
                                 String industry,
                                 String personalLabel,
                                 String headImage,
                 /*  String nickName,*/
                                 HttpServletRequest request) throws UnsupportedEncodingException, IOException;


    Map<String, Object> checklogin(String phoneNumber, HttpServletRequest request) throws UnsupportedEncodingException;

    Result getUserLable();

    Result getUserIndustrysList(/*String pageNum, String pageSize*/);


    Result outLogin(HttpServletRequest request);

    Result userCancellation(String userId);

    Result login(String phoneNum, String password) throws UnsupportedEncodingException;
}
